public class Player {
	private int def, atk, hlth, mgk, money, hp, level;
	private int dmg, defence;
	private int Wp,Arm;
	private String Wpn, Armor, Class, Name, Location;
public Player(){
}
public Player(String nm, int d, int a, int h, int m, int mg, String W, String A, String C, String L){
	setPlayer(nm, d, a, h, m, mg, W, A, C, L);
}
public void setPlayer(String nm, int d, int a, int h, int m, int mg, String W, String A, String C, String L){
	Name = nm;
	this.def = d;
	this.atk = a;
	this.hlth = h;
	this.mgk = mg;
	this.money = m;
	this.Wpn = W;
	this.Armor = A;
	this.hp = h;
	this.Class = C;
	this.Location = L;
	this.setArmor(Armor);
	this.setWpn(Wpn);
}
public int getAtk(){
	return this.atk;
}
public int getDef(){
	return this.def;
}
public int getMagic(){
	return this.mgk;
}
public int getMoney(){
	return this.money;
}
public int getHealth(){
	return this.hlth;
}
public void setAtk(int a){
	this.atk = a;
}
public void setDef(int d){
	this.def = d;
}
public void setMagic(int m){
	this.mgk = m;
}
public void setHealth(int h){
	this.hlth = h;
}
public void setMoney(int m){
	this.money = m;
}
public void increaseAtk(int a){
	this.atk += a;
}
public void increaseDef(int d){
	this.def += d;
}
public void increaseMagic(int m){
	this.mgk += m;
}
public void increaseHlth(int h){
	this.hlth += h;
}
public void increaseMoney(int m){
	this.money += m;
}
public void heal(){
	this.hp = this.hlth;
}
public void heal(int h){
	if (this.hp + h >= this.hlth)
		this.hp = this.hlth;
	else
		this.hp += h;
}
public void hurt(int h){
  this.hp -= h;
}
public int getLvl(){
	this.level = this.def + this.atk + this.hlth / 2 +this.mgk;
	this.level /= 4;
	return this.level;
}
public void setWpn(String W){
	this.Wpn = W;
	
	if (this.Wpn.equals("barehanded"))
		this.Wp = 0;
	else if (this.Wpn.equals("wooden sword"))
		this.Wp = 3;
	
	dmg = atk + Wp;
}
public void setArmor(String A){
	this.Armor = A;
	
	if (this.Armor.equals("bare"))
		this.Arm = 0;
	else if (this.Armor.equals("cloth shirt"))
		this.Arm = 2;
	
	this.defence = this.def + this.Arm;
}
public String getWpn(){
	return this.Wpn;
}
public String getArmor(){
	return this.Armor;
}
public int getWdmg(){
	return this.Wp;
}
public int getAdef(){
	return this.Arm;
}
public int getDmg(){
	return this.dmg;
}
public int getDefence(){
	return this.defence;
}
public String getJob(){
	return this.Class;
}
public String getName(){
	return this.Name;
}
public String getLocation(){
	return this.Location;
}
public void setLocation(String L){
	this.Location = L;
}
}
